package com.ming.transaction.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ming.transaction.entity.RoleMenu;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author: Chenming
 * @date 2023/5/7 11:17
 */


public interface RoleMenuMapper extends BaseMapper<RoleMenu> {

    /**
     * 根据用户ID查询菜单
     * @param roleId
     * @return
     */
    @Select("select menu_id from tt_role_menu where role_id = #{roleId}")
    List<Integer> selectByRoleId(@Param("roleId") Integer roleId);
}
